package com.niuniu.rushdorm.service.impl;

import com.niuniu.rushdorm.mapper.BedMapper;
import com.niuniu.rushdorm.pojo.response.EmptyCount;
import com.niuniu.rushdorm.pojo.response.Member;
import com.niuniu.rushdorm.pojo.response.MyRoom;
import com.niuniu.rushdorm.service.BedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author rambo
 * 2022/11/25
 */
@Service
public class BedServiceImpl implements BedService {
    @Autowired
    BedMapper bedMapper;
    @Override
    public MyRoom GetRoom(long uid) {
        return bedMapper.GetRoom(uid);
    }

    @Override
    public List<EmptyCount> GetEmpty() {
        return bedMapper.GetEmptyCount();
    }

    @Override
    public List<Member> GetMember(long roomId) {
        return bedMapper.GetMembers(roomId);
    }
}
